package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yxw.live_vod_boot.vo.OnDemandVideoVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author fangmaoxin
 * &#064;date  2023年11月16日
 */
@Data
@TableName("yx_on_demand_collection_folder")
@ApiModel("点播收藏夹实体")
public class YxOnDemandCollectionFolderEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "collection_folder_id",type = IdType.AUTO)
    @ApiModelProperty("收藏夹id")
    private Long collectionFolderId;

    @TableField("collection_folder_name")
    @ApiModelProperty("收藏夹名称")
    private String collectionFolderName;

    @TableField("user_id")
    @ApiModelProperty("用户id")
    private Long userId;

    @TableField("front_cover")
    @ApiModelProperty("封面地址（最近一次收藏视频的封面）")
    private String frontCover;

    @TableField("state")
    @ApiModelProperty("状态 1=启用  0=关闭")
    private Integer state;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @TableField(exist = false)
    private List<YxOnDemandVideoEntity> videos = new ArrayList<>();
}